<template>
  <div>
    <button @click="handleClick">
      <slot></slot>
    </button>
  </div>
</template>

<script>
export default {
  name: "LgButton",
  methods: {
    handleClick(evt) {
      this.$emit('click', evt)
      evt.preventDefault()  // 防止按钮提交表单
    }
  }
}
</script>

<style scoped>

</style>